#ifndef THREADTYPEWRITER_H
#define THREADTYPEWRITER_H

#include <QThread>
#include <QChar>

class ThreadTypeWriter : public QThread
{
    Q_OBJECT
public:
    explicit ThreadTypeWriter(QObject *parent = nullptr);
    ~ThreadTypeWriter();

    inline void SetParam(const QString& content){content_ = content;}
    void Stop();

private:
    void run();

signals:
    void signal_put_char(QChar);

private:
    volatile bool is_running_;

    QString content_;
};

#endif // THREADTYPEWRITER_H
